package com.hitqz.robot.api.business.enums;

import java.util.HashMap;

/**
 * @author xupkun
 * @date 2024/7/24
 */
public enum WarningLevelEnum {

    WARNING(0, "告警"),

    ALARM(1, "预警"),

    NOTICE(2, "提醒"),



    ;

    public final static HashMap<Integer, WarningLevelEnum> CMD_LEVEL_STATUS = new HashMap<>();


    static {
        for (WarningLevelEnum value : values()) {
            WarningLevelEnum.CMD_LEVEL_STATUS.put(value.getCode(), value);
        }
    }


    private Integer code;

    private String desc;

    WarningLevelEnum(Integer  code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
